/**
 * 
 */
jQuery(function() {
   function swapImages(){
	   	
	    var active = jQuery('.show'); 
	    var next = (jQuery('.show').next().length > 0) ? jQuery('.show').next() : jQuery('#topCarousel span:first');

	    active.fadeTo( "slow" , 0);
	    active.css( "display", "none" );
	    active.removeClass('show');
	    
	    next.fadeTo( "slow" , 1);
	    next.addClass('show');
	    
	    var activeIco = jQuery('.showIco'); 
	    var nextIco = (jQuery('.showIco').next().length > 0 && jQuery('.showIco').next().attr('id') != 'black') ? jQuery('.showIco').next() : jQuery('#topBar div#red');
	    
	    activeIco.removeClass('showIco');
	    activeIco.addClass('hideIco');
	    nextIco.removeClass('hideIco');
	    nextIco.addClass('showIco');
	};
	
	setInterval(swapImages, 2000);
});